<%-- Created by IntelliJ IDEA. --%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>火车票售卖算法</title>
</head>
<body>
<%--<script type="text/javascript">
    window.onload=function(){
        document.getElementById("submit").onclick = function () {
            var start = document.getElementById("start").value;
            var end = document.getElementById("end").value;
            alert(start);
            alert(end);
        }
    }

</script>--%>
<h2>查询余票</h2>
<form action="/queryTicketServlet" method="post">
    <select name="start">
        <option value="S1">S1</option>
        <option value="S2">S2</option>
        <option value="S3">S3</option>
        <option value="S4">S4</option>
        <option value="S5">S5</option>
        <option value="S6">S6</option>
        <option value="S7">S7</option>
        <option value="S8">S8</option>
        <option value="S9">S9</option>
    </select>
    <select name="end">
        <option value="S2">S2</option>
        <option value="S3">S3</option>
        <option value="S4">S4</option>
        <option value="S5">S5</option>
        <option value="S6">S6</option>
        <option value="S7">S7</option>
        <option value="S8">S8</option>
        <option value="S9">S9</option>
        <option value="S10">S10</option>
    </select>
    <button id="submit">查询</button>
</form>
</body>
</html>